package cn.edu.glut.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 
 * @author Caizhfy
 * @email caizhfy@163.com
 * @createTime 2017年12月6日
 * @description 专业
 *
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@Entity
@Table
public class Major implements Serializable{
	private static final long serialVersionUID = 2243190128153247936L;
	@Id
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid")
	private String id;
	private String name; // 专业名称
	private String description; // 描述
	@Column(name="create_date")
	@Temporal(TemporalType.DATE)
	private Date createDate;
	
	public Major(String id){
		this.id = id;
	}
}
